package com.ruoyi.logistics.domain.po;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.logistics.domain.Region;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class ExplicitCenter {
    private static final long serialVersionUID = 1L;

    /** 物流中心ID */
    private Long id;

    /** 物流中心名称 */
    @Excel(name = "物流中心名称")
    private String name;

    /** 区域ID */
    @Excel(name = "区域ID")
    private Long regionId;

    /** 类型(0:公司  1:交付中心 2:服务部) */
    @Excel(name = "类型(0:公司  1:交付中心 2:服务部)")
    private String type;

    /** 纬度 */
    @Excel(name = "纬度")
    private Double longitude;

    /** 经度 */
    @Excel(name = "经度")
    private Double latitude;

    private Region region;

    private ParentRegion regionParent;

    public ParentRegion getRegionParent() {
        return regionParent;
    }

    public void setRegionParent(ParentRegion regionParent) {
        this.regionParent = regionParent;
    }

    public Region getRegion() {
        return region;
    }

    public void setRegion(Region region) {
        this.region = region;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setRegionId(Long regionId)
    {
        this.regionId = regionId;
    }

    public Long getRegionId()
    {
        return regionId;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setLongitude(Double longitude)
    {
        this.longitude = longitude;
    }

    public Double getLongitude()
    {
        return longitude;
    }
    public void setLatitude(Double latitude)
    {
        this.latitude = latitude;
    }

    public Double getLatitude()
    {
        return latitude;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("regionId", getRegionId())
                .append("type", getType())
                .append("longitude", getLongitude())
                .append("latitude", getLatitude())
                .toString();
    }
}
